//
//  WDKeyViewCell.m
//  OpenSesame
//
//  Created by zhangjiaming on 17/5/10.
//  Copyright © 2017年 OpenSesame. All rights reserved.
//

#import "WDKeyViewCell.h"

@implementation WDKeyViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setKeyModel:(WDKey *)keyModel{
    self.keyModel = keyModel;
    NSString *URL = [NSString stringWithFormat:@"%@%@",BASEURL,keyModel.pic];
    [self.keyImageView sd_setImageWithURL:[NSURL URLWithString:URL] placeholderImage:[UIImage imageNamed:@"x7.png"]];
    self.nameLabel.text = keyModel.name;
    self.rateLabel.text = keyModel.frequency;
    self.contentLabel.text = keyModel.content;
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
